package com.zsx.shopping.common.api.search.feign;

import com.zsx.shopping.common.api.R;
import com.zsx.shopping.common.api.search.dto.SkuEsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("shopping-search")
public interface SearchFeignService {

    @PostMapping("/search/save/product")
    R<Void> saveProduct(@RequestBody List<SkuEsDto> skuEsDtos);
}
